package com.session07;

import java.util.Scanner;

public class Test4 {
    public static void main(String[] args) {
        Scanner input = new Scanner(System.in);
        String str = input.nextLine();
        System.out.println(firstLetter(str));
    }

    /**
     * 将"this is a test of java"这句话中的每一个单词的首字母变成大写
     * "This Is A Test Of Java"
     *
     * @param str
     * @return
     */
    public static String firstLetter(String str) {
        char[] chars = str.toCharArray();
        chars[0] -= 32;
        for (int i = 1; i < str.length() - 1; i++) {
            if (chars[i] == ' ') {
                chars[i + 1] -= 32;
            }
        }
        String strs = String.valueOf(chars);
        return strs;
    }
}
